package com.hzdl.service;

import com.hzdl.bean.Cost;
import com.hzdl.dao.CostDao;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: bxc
 * @date: 2018/9/7 0007
 * @description:
 */
@Service
public class CostService {
    @Autowired
    private CostDao costDao;

    public List<Cost> getAllCost(int aid){
        return costDao.getAllCost(aid);
    }

    public List<Cost> getAllCosts(){
        return costDao.getAllCosts();
    }

}
